Add docs build
authorFelix Krull <f_krull@gmx.de>
Tue, 16 Oct 2018 18:28:37 +0000 (20:28 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:53 +0000 (12:53 -0400)
rust-bindings/rust/.gitlab-ci.yml

index 1eeb0c2d1c78119d905b7aea639fc02aa08f7a17..24c2d4efea44cce7ab08d940cf6490217c1eb53b 100644 (file)
@@ -7,6 +7,7 @@ before_script:
 
 stages:
 - build
+- doc
 - publish
 
 libostree-sys:
@@ -49,6 +50,17 @@ libostree_nightly:
   - cargo test --verbose --package libostree
   allow_failure: true
 
+# docs
+pages:
+  stage: doc
+  script:
+  - cargo doc --verbose --all-features
+  - cp -r target/doc public
+  artifacts:
+    paths:
+    - public
+  only:
+  - master
 
 # publish
 publish_libostree-sys: